package org.dtrd.modules.content.articles.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.checkerframework.checker.units.qual.A;
import org.dtrd.modules.content.articles.entity.po.DtrdExtEmsCategory;
import org.dtrd.modules.faq.entity.po.DtrdExtEmsYwFaqCategory;

@Data
@ApiModel(value = "知识问答分类")
public class FaqCategory {

    @ApiModelProperty(name = "分类ID")
    private Integer dataId;

    @ApiModelProperty(name = "分类名称")
    private String categoryName;

    @ApiModelProperty(name = "分类描述")
    private String categoryDesc;

    public FaqCategory parseFromPO(DtrdExtEmsYwFaqCategory po) {
        dataId = po.getDataId();
        categoryName = po.getCategoryName();
        categoryDesc = po.getCategoryDesc();
        return this;
    }
}
